/**
 * Reducer 数据处理
*/
import { type } from './action'

const reducer = (state, action) => {
  switch (action.type) {

    case type.USER_INFO:
      return {
        ...state,
        userInfo: action.userInfo
      }
    default:
      return { ...state }
  }
}
export default reducer